<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo ($lang == "en")?"en-us":""; ?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="expires" content="never" />
	<meta name="charset" content="utf-8" />
	<meta name="distribution" content="global" />
	<meta name="robots" content="index,follow" />
	<meta name="author" content="YekComputer" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta name="google-site-verification" content="" />
	<link rel="shortcut icon" href="<?php echo site_url("files/website/images/favicon.png"); ?>">
	<title>.: Chemia Teif Sanj <?php if(isset($title)): ?> - <?php echo $title; endif; ?> :.</title>
	<link href="<?php echo site_url("files/website/css/style.css"); ?>" rel="stylesheet" type="text/css" />
	
	<script type="text/javascript" src="<?php echo site_url("files/javascripts/jquery/jquery.js") ?>"></script>
	<script type="text/javascript">
	//google-analytics
	</script>
</head>
<body>
	<div class="wrapper">
		<div id="header">
			<div id="search-box">

				<div id="search">
					<?php echo form_open(site_url("products/search"),array("id"=>"search-form"),array("uri_string"=>$this->uri->uri_string())); ?>
						<input name="keywords" type="text" class="search" id="text-search" onblur="(this.value=='')?this.value='جستجو':''" onfocus="(this.value=='جستجو')?this.value='':''" value="<?php echo ($this->input->post("keywords") != "")?$this->input->post("keywords"):"جستجو"; ?>" />
						<input name="saerch" class="btn-search" id="" type="submit" value="" />&nbsp;&nbsp;
					<?php echo form_close(); ?>
				</div>

				<div id="mini-icon">
					<a href="<?php echo base_url(); ?>"><div id="home"></div></a>
					<a href="<?php echo site_url("pages/contactus"); ?>"><div id="mail"></div></a>
				</div>

			</div>
			<div id="banner">
				<div id="left-banner">
					<div id="call-us"></div>
					<a href="<?php echo base_url("pages/registerProduct"); ?>"><div id="sell-banner"></div></a>
				</div>

				<div id="main-menue">
					<a href="<?php echo site_url("products"); ?>">
						<div id="products"></div> </a> <a href="<?php echo site_url("articles"); ?>">
						<div id="articles"></div> </a> <a href="<?php echo site_url("pages/contactus"); ?>">
						<div id="contact"></div> </a> <a href="<?php echo site_url("pages/aboutus"); ?>">
						<div id="about-us"></div> </a>
				</div>
				<div id="logo"></div>
			</div>
			<div id="green-line"></div>
		</div>
		<div id="content">
			<?php echo $content; ?>
			
			<div id="category">
				<ul>
					<?php if(count($categories) > 0): ?>
						<?php foreach($categories as $category): ?>
							<?php if(isset($current_category_id) && $current_category_id == $category->cat_id): ?>
								<li><a href="<?php echo base_url("products/inventory/".$category->cat_id); ?>" class="category">> <?php echo $category->title; ?></a></li>
							<?php else: ?>
								<li><a href="<?php echo base_url("products/inventory/".$category->cat_id); ?>" class="category"><?php echo $category->title; ?></a></li>
							<?php endif; ?>
						<?php endforeach; ?>
					<?php endif; ?>
				</ul>
			</div>

		</div>
		<div id="footer">
			<div class="logo">
				<span>Chemia Teif Sanj Co. Ltd.</span> <br /> &copy; 2013
				All right reserved by chemia teif sanj company
			</div>
			<div>
				<a href="<?php echo site_url("products"); ?>">محصولات</a><br />
				<a href="<?php echo site_url("articles"); ?>">مقالات</a>
			</div>

			<div>
				<a href="<?php echo site_url("pages/contactus"); ?>">تماس با ما</a><br />
				<a href="<?php echo site_url("pages/aboutus"); ?>">درباره ما</a>
			</div>
		</div>
	</div>
</body>
</html>
